﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CWT.ArticleModule
{
    public interface IArticleService
    {
        #region category
        bool SaveCategory(Category category);
        bool DeleteCategory(Category category);
        Category FindCategory(string code);
        List<Category> FindCategories();
        #endregion

        #region article
        bool SaveArticle(Article article);
        List<Article> FindArticles(Guid categoryId, int start, int limit);
        List<Article> FindArticles(string categoryCode, int start, int limit);
        #endregion
    }
}
